<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="text encoding, detection"/>
	<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
	<script defer src="../../Shared/js/toc.js"></script>
	
	<title>Change priorities of text encodings in CotEditor on Mac</title>
</head>

<body>
<a name="howto_customize_encoding_order"></a>

<h1>Change priorities of text encodings in CotEditor on Mac</h1>

<p>CotEditor has a powerful text encoding detection feature that automatically determines the text encoding of the file when opening a document.</p>

<p>The priority of text encoding depends on the language and use case. So, you can prioritize specific encodings to detect text encoding of documents.</p>

<figure>
	<img srcset="../gfx/encodingPriority@2x.png 2x" width="500" alt="Screenshot of the encoding priority setting dialog"/>
</figure>


<section>
<p>To change the priority used to detect a document’s encoding when opening it:</p>
<ol>
	<li><p>Go to the CotEditor app <img class="appicon" srcset="../../Shared/gfx/icon_32x32@2x.png 2x" alt=""/> on your Mac.</p></li>
	<li><p>Choose CotEditor &gt; Settings, then click Format.</p></li>
	<li><p>In the “Encoding priorities” section, click the Edit List button.</p></li>
	<li><p>Move up the encodings you use frequently.</p></li>
</ol>

<p>CotEditor supports all text encodings available on macOS. You can also use the Add/Remove buttons to add separators or nonstandard encodings, or remove encodings you don't want used for the automatic detection.</p>

<p>Encodings not on this list aren’t considered as candidates for the automatic encoding detection when opening documents. Keep encodings on the list that you want to use as candidates for encoding detection, even if you don’t use them directly.</p>

<p>“Unicode (UTF-8)” and “Unicode (UTF-8) with BOM” can’t be removed from the list and are always handled as a set. Because the BOM (byte order mark) is taken into account when trying to encode data into UTF-8, there is no effect on the detection precision that the order of these two encodings is fixed.</p>

<p>“Unicode (UTF-16)” should be placed <strong>after</strong> other often-used encodings, because UTF-16 can encode most characters.</p>
</section>


<section id="cf">
<h2>See also</h2>
<ul>
	<li><a href="about_shiftjis.html">Use four kinds of Shift JIS properly in CotEditor on Mac</a></li>
	<li><a href="settings_format.html">Change Format settings in CotEditor on Mac</a></li>
</ul>
</section>

</body>
</html>
